const globs = import.meta.glob("./*.ts", {
  eager: true
});

const modules = {};
for (const path in globs) {
  const mod = globs[path];
  const key = path.match(new RegExp("./(.*).ts"))[1];
  if (key != "index") {
    modules[key] = mod;
  }
}

export default modules;
